package config;


//import com.opcserver.ServerApplication;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * 配置文件
 */

public class IniDTO implements Serializable {

    /*产线机床号*/
    private static String cnc_code = "";

    /*---------------------- 机床给PLC-------------------*/
    /*机床准备好,机床故障*/
    private static String plcToCnc1 = "";
    /*安全位置*/
    private static String plcToCnc2 = "";
    /*联机模式*/
    private static String plcToCnc3 = "";

    /*上料请求*/
    private static String plcToCnc4 = "";
    /*卸料请求*/
    private static String plcToCnc5 = "";

    /*机床自动门开(桁架式代表顶蓬门)*/
    private static String plcToCnc6 = "";
    /*允许进入*/
    private static String plcToCnc7 = "";

    /*加工预完成*/
    private static String plcToCnc8 = "";


    /*--------------------------PLC给机床-------------------*/
    /*机器人准备好*/
    private static String cncToPlc1 = "";
    /*程序号确认*/
    private static String cncToPlc2 = "";
    /*机器人进入机床*/
    private static String cncToPlc3 = "";
    /*上料完成，NC启动*/
    private static String cncToPlc4 = "";
    /*卸料完成*/
    private static String cncToPlc5 = "";
    /*机器人请求进入*/
    private static String cncToPlc6 = "";
    /*机器人自动运转*/
    private static String cncToPlc7 = "";
    /*机器人半自动运转*/
    private static String cncToPlc8 = "";


    /*授权*/
    private static String shouquan = "";
    /*SFTP*/
    private static String sftp_username = "";
    private static String sftp_password = "";
    private static String sftp_host = "";
    private static String sftp_port = "";
    private static String sftp_path = "";

    /*CNC Remote Info*/

    private static String cnc_host = "";
    private static String cnc_port = "";

    /*OPC UA server info*/
    private static String host = "";
    private static String port = "";
    /*标识路径*/
    private static String Server_Id = "";
    /*密钥*/
    private static String keyPath = "";
    private static String username = "";
    private static String password = "";

    /*服务地址*/
    private static String serverUri = "";
    private static String manufacturerName = "";
    private static String productName = "";
    private static String softwareVersion = "";
    /*OPC服务*/
    private static String opcua_server_url = "";
    /*web*/
    private static String httpPort = "";

/////////////////////////////////////////////////////////////////////////////


    public static String getPlcToCnc1() {
        return plcToCnc1;
    }

    public static void setPlcToCnc1(String plcToCnc1) {
        IniDTO.plcToCnc1 = plcToCnc1;
    }

    public static String getPlcToCnc2() {
        return plcToCnc2;
    }

    public static void setPlcToCnc2(String plcToCnc2) {
        IniDTO.plcToCnc2 = plcToCnc2;
    }

    public static String getPlcToCnc3() {
        return plcToCnc3;
    }

    public static void setPlcToCnc3(String plcToCnc3) {
        IniDTO.plcToCnc3 = plcToCnc3;
    }

    public static String getPlcToCnc4() {
        return plcToCnc4;
    }

    public static void setPlcToCnc4(String plcToCnc4) {
        IniDTO.plcToCnc4 = plcToCnc4;
    }

    public static String getPlcToCnc5() {
        return plcToCnc5;
    }

    public static void setPlcToCnc5(String plcToCnc5) {
        IniDTO.plcToCnc5 = plcToCnc5;
    }

    public static String getPlcToCnc6() {
        return plcToCnc6;
    }

    public static void setPlcToCnc6(String plcToCnc6) {
        IniDTO.plcToCnc6 = plcToCnc6;
    }

    public static String getPlcToCnc7() {
        return plcToCnc7;
    }

    public static void setPlcToCnc7(String plcToCnc7) {
        IniDTO.plcToCnc7 = plcToCnc7;
    }

    public static String getPlcToCnc8() {
        return plcToCnc8;
    }

    public static void setPlcToCnc8(String plcToCnc8) {
        IniDTO.plcToCnc8 = plcToCnc8;
    }

    public static String getCncToPlc1() {
        return cncToPlc1;
    }

    public static void setCncToPlc1(String cncToPlc1) {
        IniDTO.cncToPlc1 = cncToPlc1;
    }

    public static String getCncToPlc2() {
        return cncToPlc2;
    }

    public static void setCncToPlc2(String cncToPlc2) {
        IniDTO.cncToPlc2 = cncToPlc2;
    }

    public static String getCncToPlc3() {
        return cncToPlc3;
    }

    public static void setCncToPlc3(String cncToPlc3) {
        IniDTO.cncToPlc3 = cncToPlc3;
    }

    public static String getCncToPlc4() {
        return cncToPlc4;
    }

    public static void setCncToPlc4(String cncToPlc4) {
        IniDTO.cncToPlc4 = cncToPlc4;
    }

    public static String getCncToPlc5() {
        return cncToPlc5;
    }

    public static void setCncToPlc5(String cncToPlc5) {
        IniDTO.cncToPlc5 = cncToPlc5;
    }

    public static String getCncToPlc6() {
        return cncToPlc6;
    }

    public static void setCncToPlc6(String cncToPlc6) {
        IniDTO.cncToPlc6 = cncToPlc6;
    }

    public static String getCncToPlc7() {
        return cncToPlc7;
    }

    public static void setCncToPlc7(String cncToPlc7) {
        IniDTO.cncToPlc7 = cncToPlc7;
    }

    public static String getCncToPlc8() {
        return cncToPlc8;
    }

    public static void setCncToPlc8(String cncToPlc8) {
        IniDTO.cncToPlc8 = cncToPlc8;
    }

    public static String getCnc_code() {
        return cnc_code;
    }

    public static void setCnc_code(String cnc_code) {
        IniDTO.cnc_code = cnc_code;
    }

    public static String getShouquan() {
        return shouquan;
    }

    public static void setShouquan(String shouquan) {
        IniDTO.shouquan = shouquan;
    }

    public static String getSftp_username() {
        return sftp_username;
    }

    public static void setSftp_username(String sftp_username) {
        IniDTO.sftp_username = sftp_username;
    }

    public static String getSftp_password() {
        return sftp_password;
    }

    public static void setSftp_password(String sftp_password) {
        IniDTO.sftp_password = sftp_password;
    }

    public static String getSftp_host() {
        return sftp_host;
    }

    public static void setSftp_host(String sftp_host) {
        IniDTO.sftp_host = sftp_host;
    }

    public static String getSftp_port() {
        return sftp_port;
    }

    public static void setSftp_port(String sftp_port) {
        IniDTO.sftp_port = sftp_port;
    }

    public static String getSftp_path() {
        return sftp_path;
    }

    public static void setSftp_path(String sftp_path) {
        IniDTO.sftp_path = sftp_path;
    }

    public static String getHttpPort() {
        return httpPort;
    }

    public static void setHttpPort(String httpPort) {
        IniDTO.httpPort = httpPort;
    }

    public static String getKeyPath() {
        return keyPath;
    }

    public static String getOpcua_server_url() {
        return opcua_server_url;
    }

    public static void setOpcua_server_url(String opcua_server_url) {
        IniDTO.opcua_server_url = opcua_server_url;
    }

    public static String getCnc_host() {
        return cnc_host;
    }

    public static void setCnc_host(String cnc_host) {
        IniDTO.cnc_host = cnc_host;
    }

    public static String getCnc_port() {
        return cnc_port;
    }

    public static void setCnc_port(String cnc_port) {
        IniDTO.cnc_port = cnc_port;
    }

    /*
        * ;设置轴参数：轴的数量
        --cnc.axis.num=6*/
    private static Integer cncAxisNum = 0;


////////////////////////////////////////////////////////////////////////////////////////


    public static String getManufacturerName() {
        return manufacturerName;
    }

    public static void setManufacturerName(String manufacturerName) {
        IniDTO.manufacturerName = manufacturerName;
    }

    public static String getProductName() {
        return productName;
    }

    public static void setProductName(String productName) {
        IniDTO.productName = productName;
    }

    public static String getSoftwareVersion() {
        return softwareVersion;
    }

    public static void setSoftwareVersion(String softwareVersion) {
        IniDTO.softwareVersion = softwareVersion;
    }

    public static Integer getCncAxisNum() {
        return cncAxisNum;
    }

    public static void setCncAxisNum(Integer cncAxisNum) {
        IniDTO.cncAxisNum = cncAxisNum;
    }

    /*;分别定义轴名称，以（英文逗号）,分割
    --cnc.axis.name.array=[s1,s2,s3,s4,s5,s6]*/
    private static ArrayList<String> arrayList1 = new ArrayList<>();

    public static ArrayList<String> getArrayList1() {
        return arrayList1;
    }

    public static void setArrayList1(ArrayList<String> arrayList1) {
        IniDTO.arrayList1 = arrayList1;
    }

    /*逻辑轴-读取id*/
    private static ArrayList<String> arrayList2 = new ArrayList<>();

    public static ArrayList<String> getArrayList2() {
        return arrayList2;
    }

    public static void setArrayList2(ArrayList<String> arrayList2) {
        IniDTO.arrayList2 = arrayList2;
    }

    /*物理轴-读取id*/
    private static ArrayList<String> arrayList3 = new ArrayList<>();

    public static ArrayList<String> getArrayList3() {
        return arrayList3;
    }

    public static void setArrayList3(ArrayList<String> arrayList3) {
        IniDTO.arrayList3 = arrayList3;
    }

    /*逻辑轴是否工作在主轴模式-读取id*/
    private static ArrayList<String> arrayList4 = new ArrayList<>();

    public static ArrayList<String> getArrayList4() {
        return arrayList4;
    }

    public static void setArrayList4(ArrayList<String> arrayList4) {
        IniDTO.arrayList4 = arrayList4;
    }


    public static String getServer_Id() {
        return Server_Id;
    }

    public static void setServer_Id(String server_Id) {
        Server_Id = server_Id;
    }


    public static String getServerUri() {
        return serverUri;
    }

    public static void setServerUri(String serverUri) {
        IniDTO.serverUri = serverUri;
    }


//    public static void setOpcua_server_url(String opcua_server_url) {
//        IniDTO.opcua_server_url = opcua_server_url;
//    }

    public static String getHost() {
        return host;
    }

    public static void setHost(String host) {
        IniDTO.host = host;
    }

//    public static String getKeyPath() {
//        keyPath = ServerApplication.opcua_server_key_path;
//        return keyPath;
//    }

    public static void setKeyPath(String keyPath) {
        IniDTO.keyPath = keyPath;
    }

    public static String getUsername() {
        return username;
    }

    public static void setUsername(String username) {
        IniDTO.username = username;
    }

    public static String getPassword() {
        return password;
    }

    public static void setPassword(String password) {
        IniDTO.password = password;
    }

    public static String getPort() {
        return port;
    }

    public static void setPort(String port) {
        IniDTO.port = port;
    }


//
//
//
//    public static String myInfo() {
//        final StringBuffer sb = new StringBuffer("IniDTO{");
//        sb.append("用户名:"+getUsername()+"密码:"+getPassword()+"IP:"+getHost()+"密钥路径:"+getKeyPath());
//        sb.append('}');
//        return sb.toString();
//    }
}
